package com.ihisun.tmhcms.security.securityservice.impl;

import com.ihisun.tmhcms.security.securitdao.SysRoleDao;
import com.ihisun.tmhcms.security.securityservice.SysRoleService;
import com.ihisun.tmhcms.security.entity.SysRoleEntity;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class SysRoleServiceImpl implements SysRoleService {
    @Resource
    SysRoleDao sysRoleDao;
    @Override
    public List<SysRoleEntity> selectSysRoleByUserIds(Long userId) {
        List<SysRoleEntity> byRoleId = sysRoleDao.findByRoleId(userId);
        return byRoleId;
    }
}
